package com.astoolkit.workflow.common
{
	import com.astoolkit.workflow.BaseTask;
	
	public class SetProperty extends BaseTask
	{
		public var target : Object;
		public var property : String;
		public var value : *;
		
		override public function begin():void
		{
			super.begin();
			if( !target || !property ) {
				fail( "SetPropertyTask: No target or no property name");
				return;
			}
			target[ property ] = value;
			complete();
			
		}
	}
}